package function.listen;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JMenuBar;
import javax.swing.UIManager;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import javax.swing.event.MenuDragMouseEvent;
import javax.swing.event.MenuDragMouseListener;
import javax.swing.event.MenuEvent;
import javax.swing.event.MenuListener;

import frame.data.contrldata;

public class menubarlisten {
	public menubarlisten() {
		try {
			UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		}catch (Exception e) {
			System.exit(1);
		}
		contrldata.tool=new JMenuBar(){
			@Override
			protected void paintComponent(Graphics g) {
				g.setColor(new Color(222,222,222));
				g.fillRect(0, 0, getWidth(), 25);
			}
		};
	}
	public void loadtoolslisten() {
		
	}
	/**
	 * 设置菜单失去焦点
	 */
	public void settoolsfouseout() {
	}
}
